﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Esosi.Entity
{
    [Table("GM_CHARGE_POLICY")]
    public class GmChargePolicy
    {
        [Key]
        [Column("POLICY_ID")]
        public long PolicyId { get; set; }

        [Column("REFERENCE_ID")]
        public long ReferenceId { get; set; }

        public virtual GrChargePolicyReference GrChargePolicyReference { get; set; }

        [Column("INVOICE_PAY_MODE_CODE")]
        public long InvoicePayModeCode { get; set; }

        [Column("POLICY_TYPE_CODE")]
        public HospitalPolicyType PolicyType { get; set; }

        [Column("RATION")]
        public decimal Ration { get; set; }

        [Column("UPPER_LIMIT")]
        public decimal? UpperLimit { get; set; }

        [Column("BALANCE_TYPE_CODE")]
        public BalanceType BalanceType { get; set; }

        [Column("CREATE_BY")]
        public string CreateBy { get; set; }

        [Column("CREATE_DATE")]
        public DateTime CreateDate { get; set; }

        [Column("UPDATE_BY")]
        public string UpdateBy { get; set; }

        [Column("UPDATE_DATE")]
        public DateTime? UpdateDate { get; set; }

        [Column("PERCENT")]
        public decimal Percent { get; set; }

        public virtual ICollection<GmChargePolicyDetail> GmChargePolicyDetails { get; set; }
    }
}